package com.ubs.training.server.dao.model;

/**
 * Created with IntelliJ IDEA.
 * User: xubuntu
 * Date: 8/21/12
 * Time: 4:08 AM
 * To change this template use File | Settings | File Templates.
 */
public class LinkClient {
    private int id;
    private int target_client_id;
    private int link_type_id;
    private int status;
    private String contact_person_name;


    public int getLink_type_id() {
        return link_type_id;
    }

    public void setLink_type_id(int link_type_id) {
        this.link_type_id = link_type_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTarget_client_id() {
        return target_client_id;
    }

    public void setTarget_client_id(int target_client_id) {
        this.target_client_id = target_client_id;
    }

    public String getContact_person_name() {
        return contact_person_name;
    }

    public void setContact_person_name(String contact_person_name) {
        this.contact_person_name = contact_person_name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LinkClient that = (LinkClient) o;

        if (id != that.id) return false;
        if (link_type_id != that.link_type_id) return false;
        if (status != that.status) return false;
        if (target_client_id != that.target_client_id) return false;
        if (contact_person_name != null ? !contact_person_name.equals(that.contact_person_name) : that.contact_person_name != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + link_type_id;
        result = 31 * result + status;
        result = 31 * result + target_client_id;
        result = 31 * result + (contact_person_name != null ? contact_person_name.hashCode() : 0);
        return result;
    }
}
